package org.example.fronted.service.impl;

import org.example.entity.User;
import org.example.fronted.mapper.UserMapper1;
import org.example.fronted.service.UserService1;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

@Service
public class UserService1Impl implements UserService1 {

    @Resource
    UserMapper1 userMapper1;

    @Override
    public List<User> selectAllUser() {
        return userMapper1.selectAllUser();
    }

    @Override
    public User login(String uName, String uPassword) {
        return userMapper1.selectUserByNameAndPass(uName,uPassword);
    }

}
